package com.GroupSix.service;

import com.GroupSix.entity.ExamPaperEntity;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

public interface ExamPaperService extends IService<ExamPaperEntity> {
    //增
    Integer add(ExamPaperEntity examPaperEntity);

    //删
    Integer delete(int id);

    //查
    ExamPaperEntity find(int id);

    //改
    Integer update(ExamPaperEntity examPaperEntity);

    //分页查询
    IPage<ExamPaperEntity> list(ExamPaperEntity examPaperEntity, Integer pageNo, Integer pageSize);

    //根据试题生成规则生成试卷
    ExamPaperEntity generateExamPaper(Long ruleId, Long teacherId, String type);

}
